home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 47.7z / BS1 part 47 / ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].7z / ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].adf / piarc.lzh.parta / animwr4.rexx < prev    next >
OS/2 REXX Batch file  |  1994-03-17  |  1KB  |  55 lines

  1. /*
  2.     This phase calls the delta generator with the -l switch
  3.     to generate the loop deltas
  4.  */
  5.  
  6. /*
  7.  * open rexxsupport.library -- needed for some functions
  8.  */
  9. if ~show('L',"rexxsupport.library") then do
  10.   if addlib('rexxsupport.library',0,-30,0) then do
  11.       /* everything's ok */
  12.     end;
  13.   else do
  14.     say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
  15.     say 'Cannot operate animr.rexx without this library - sorry!';
  16.     exit 10;
  17.     end;
  18.   end;
  19.  
  20. prtnme = 'IP_Port'; /* assume Image Professional */
  21. if show('P','IP_Port') = 0 then do
  22.   if show('P','IM_Port') = 0 then do
  23.     say "Can't find image processor's ARexx port!!!"; /* not running? */
  24.     say "This script requires IP, IM or IM F/c to run!";
  25.     exit(20);
  26.     end;
  27.   else do
  28.     prtnme = 'IM_Port'; /* That's the thing about assumptions... */
  29.     end;                 /* We make em, user's break em.          */
  30.   end;
  31.  
  32. options;
  33. address;
  34.  
  35.   prevpath = 'ram:'; /* put user in ram to start with... */
  36.  
  37.   call open(fhandle,'ram:IP_ANIMWR.CFG','read');      /* open the file */
  38.    jiffies = readln(fhandle);
  39.    animfile = readln(fhandle);
  40.    prefs = readln(fhandle);
  41.    atype = readln(fhandle);
  42.   call close(fhandle);                     /* close the file    */
  43.  
  44.   if prefs = 0 then do
  45.     address command 'cmpi:ANIMWR -l '||jiffies||' '||atype||' '||animfile;
  46.     end;
  47.  
  48.   address command 'delete >nil: ram:IP_ANIMWR.CFG';
  49.  
  50.   address(prtnme);
  51.   'finish';
  52.   exit 0;
  53.  
  54.  
  55.